package com.itheima.HomeWork.home1;

public class Test {
    public static void main(String[] args) {

        try {
            Student student = new Student();
            student.setName("张三");
            student.setGender("2");
            student.setAge(20);
        }  catch (SexException sexException) {
            System.out.println(sexException.getMessage());
        } catch (AgeException ageException) {
            System.out.println(ageException.getMessage());
        }

    }
}
